﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UploadImage.aspx.cs" Inherits="Gmis.Web.Manage.Village.UploadImage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="pagerForm" method="post" action="Village/UploadImage.aspx?filetype=<%=fileType %>">
    <input type="hidden" name="status" value="status" />
    <input type="hidden" name="keywords" value="keywords" />
    <input type="hidden" name="numPerPage" value="<% =NumPerPage %>" />
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="orderField" value="" />
    </form>
    <div class="pageHeader">
        <!--<搜索栏>-->
        <form onsubmit="return navTabSearch(this);" action="Village/UploadImage.aspx?filetype=<%=fileType %>" method="post">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>
                        标题：</label>
                    <input name="txt_sTitle" type="text" value="<%=sTitle %>" />
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button></div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        </form>
        <!--</搜索栏>-->
    </div>
     <div class="panelBar">
            <ul class="toolBar">
                <li><a class="add" target="dialog"  href="Village/UploadImageAdd.aspx?action=add&filetype=<%=fileType %>" width="840"
                    height="560"><span><%=fileTypeName%></span> </a></li>
                <li><a class="delete" href="Village/UploadImageHandler.ashx?action=deleteall" posttype="string"
                    rel="ids" target="selectedTodo" title="确实要删除这些记录吗?"><span>批量删除</span> </a></li>
                <li class="line">line</li>
                <%--<li><a class="icon" href="javascript:void(0);"><span>导入EXCEL</span></a></li>--%>
            </ul>
        </div> 
    <div class="pageContent">
        <table class="table" width="100%">
            <thead>
                <tr>
                    <th width="22">
                        <input type="checkbox" group="ids" class="checkboxCtrl">
                    </th>
                    <th width="80">
                        标题
                    </th>
                    <th width="80">
                        文件名称
                    </th>
                    <th width="120">
                        上传日期
                    </th>
                  <%--  <th>
                    缩略图
                    </th>--%>
                    <th width="70">
                        操作
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="RepeaterTr" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <input name="ids" type="checkbox" value='<%#DataBinder.Eval(Container.DataItem, "sId")%>' />
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "sTitle")%>
                            </td>
                            <td>
                            <%# DataBinder.Eval(Container.DataItem, "sFileName")%>
                            </td>
                            <td>
                                <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "dDate")).ToString("yyyy-MM-dd") %>
                            </td>
                        <%--    <td>
                               <img alt="" height="60px" width="60px" src="" />
                            </td>--%>
                            <td>
                                <a title="删除" target="ajaxTodo" href="Village/UploadImageHandler.ashx?action=delete&id=<%# DataBinder.Eval(Container.DataItem, "sId")%>"
                                    class="btnDel">删除</a>
                                <a title="编辑" target="dialog" width="840" height="560" href="Village/UploadImageAdd.aspx?id=<%# DataBinder.Eval(Container.DataItem, "sId")%>&filetype=<%=fileType %>&action=edit"
                                        class="btnEdit">编辑</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="panelBar">
            <div class="pages">
                <span>显示</span>
                <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">       
                    <option value="<%=NumPerPage%>"></option>   
                    <option value="20">20</option>
                    <option value="30">30</option>
                    <option value="50">50</option>
                    <option value="100">100</option>
                </select>
                <span>条，共<%=TotalCount%>条</span>
            </div>
            <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=NumPerPage%>"
                pagenumshown="<%=PageNumShown%>" currentpage="<%=PageNum%>">
            </div>
        </div>
    </div>
</body>
</html>
